<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="interestDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='interestDetail.heading'/>"/>
</head>
<s:form id="interestForm" action="save" method="post" validate="true">
<s:hidden name="interest.id" value="%{interest.id}"/>

	<li>
		<s:textfield key="interest.name" required="true" cssClass="text medium"/>
	</li>
	<li>
		<s:select label="%{getText('interest.parent')}" list="rootInterests"  value="interest.parent.id"  listValue="name"  listKey="id" required="true" theme="xhtml" cssClass="medium"/>
	</li>
	
	<li class="buttonBar bottom">
        <s:submit cssClass="button"  method="save" key="button.save"  theme="simple"/>
        <c:if test="${not empty interest.id}">
            <s:submit cssClass="button" method="delete" key="button.delete" onclick="return confirmDelete('major')" theme="simple"/>
        </c:if>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>

</s:form>
<script type="text/javascript">
    Form.focusFirstElement($("interestForm"));
</script>

